import { createRouter, createWebHashHistory } from 'vue-router'
import modifySize from '../components/modifySize.vue'
import watermark from '../components/watermark.vue'
import convertFormat from '../components/convertFormat.vue'

const router = createRouter({
  history: createWebHashHistory(),
  routes: [
    {
      path: '/',
      redirect: '/convertFormat'
    },
    {
      path: '/modifySize',
      name: 'modifySize',
      component: modifySize
    },
    {
      path: '/convertFormat',
      name: 'convertFormat',
      component: convertFormat
    },
    {
      path: '/watermark',
      name: 'watermark',
      component: watermark
    },
  ]
})

export default router
